package com.google.code.irouter.portal.client.rpc.transponder;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("TransponderService")
public interface TransponderService extends RemoteService {
	/**
	 * Utility class for simplifying access to the instance of async service.
	 */
	public static class Util {
		private static TransponderServiceAsync instance;
		public static TransponderServiceAsync getInstance(){
			if (instance == null) {
				instance = GWT.create(TransponderService.class);
			}
			return instance;
		}
	}
	
	TransponderResult get(String id) throws IllegalArgumentException;
}
